package a.d;

import a.c.z;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;

public final class y
{
  public static final y a = new y();
  z c;
  public static int d;
  
  public y()
  {
    this.c = new z();
  }
  
  public y(Vector paramVector)
  {
    if (!bool2)
    {
      if (paramVector == null)
      {
        this.c = new z();
        if (bool2) {
          break label54;
        }
        if (!bool1) {
          return;
        }
      }
      this.c = new z();
    }
    label54:
    int i = 0;
    do
    {
      if (i >= paramVector.size()) {
        break;
      }
      this.c.add(paramVector.elementAt(i));
      i++;
    } while (!bool1);
  }
  
  public y(List paramList)
  {
    this.c = new z();
    if (((bool2) || (paramList != null)) && ((bool2) || (!paramList.isEmpty())))
    {
      Iterator localIterator = paramList.iterator();
      do
      {
        if (!localIterator.hasNext()) {
          break;
        }
        this.c.add(localIterator.next());
      } while (!bool1);
    }
  }
  
  public y(w[] paramArrayOfw)
  {
    if (!bool)
    {
      if (paramArrayOfw == null)
      {
        if (bool) {
          break label46;
        }
        this.c = new z();
      }
    }
    else if (!w.d) {
      return;
    }
    label46:
    this.c = new z(paramArrayOfw);
  }
  
  public a.c.y a()
  {
    return this.c.h();
  }
  
  public x b()
  {
    return new a_(this.c.h());
  }
  
  public Iterator c()
  {
    return this.c.iterator();
  }
  
  public w d()
  {
    return (w)this.c.a();
  }
  
  public w e()
  {
    return (w)this.c.d();
  }
  
  public Vector f()
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    Vector localVector = new Vector(this.c.size());
    do
    {
      a.c.y localy = a();
      while (!bool1)
      {
        if (!localy.e()) {
          break;
        }
        if (bool1) {
          break label68;
        }
        localVector.addElement(localy.j());
        localy.f();
      }
    } while (bool2);
    label68:
    return localVector;
  }
  
  public List g()
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    ArrayList localArrayList = new ArrayList(this.c.size());
    do
    {
      a.c.y localy = a();
      while (!bool1)
      {
        if (!localy.e()) {
          break;
        }
        if (bool1) {
          break label69;
        }
        localArrayList.add(localy.j());
        localy.f();
      }
    } while (bool2);
    label69:
    return localArrayList;
  }
  
  public w[] h()
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    w[] arrayOfw = new w[this.c.size()];
    int i = 0;
    do
    {
      a.c.y localy = a();
      while (!bool1)
      {
        if (!localy.e()) {
          break;
        }
        if ((!bool2) && (bool1)) {
          break label79;
        }
        arrayOfw[(i++)] = ((w)localy.j());
        localy.f();
      }
    } while (bool2);
    label79:
    return arrayOfw;
  }
  
  public y i()
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    ArrayList localArrayList = new ArrayList();
    do
    {
      a.c.y localy = a();
      while (!bool1)
      {
        if (!localy.e()) {
          break;
        }
        localArrayList.add(0, localy.j());
        localy.f();
      }
    } while (bool2);
    return new y(localArrayList);
  }
  
  public int j()
  {
    return this.c.size();
  }
  
  public int k()
  {
    int i = this.c.size();
    if (!w.e) {}
    return i > 0 ? i - 1 : 0;
  }
  
  public v l()
  {
    return new b_(b());
  }
  
  public n a(int paramInt)
  {
    if (paramInt + 1 >= this.c.size()) {
      return null;
    }
    w localw1 = (w)this.c.a(paramInt);
    w localw2 = (w)this.c.a(paramInt + 1);
    if ((w.e) || ((localw1 == null) || (localw2 == null))) {
      return null;
    }
    return new n(localw1, localw2);
  }
  
  public String toString()
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("YPointPath:\n");
    a.c.y localy = a();
    do
    {
      if (!localy.e()) {
        break;
      }
      w localw = (w)localy.j();
      if (!bool2)
      {
        if (bool1) {
          break label98;
        }
        localStringBuffer.append(localw.toString() + "\n");
        localy.f();
      }
    } while (!bool1);
    label98:
    return localStringBuffer.toString();
  }
  
  public double m()
  {
    boolean bool2 = w.e;
    boolean bool1 = w.d;
    if ((bool2) || (this.c.size() > 1))
    {
      Object localObject = (w)this.c.a();
      double d1 = 0.0D;
      a.c.v localv = this.c.f().a();
      do
      {
        if (localv == null) {
          break;
        }
        w localw = (w)localv.c();
        if (!bool2)
        {
          if (bool1) {
            break label101;
          }
          d1 += w.a((w)localObject, localw);
          localObject = localw;
          localv = localv.a();
        }
      } while (!bool1);
      label101:
      return d1;
    }
    return 0.0D;
  }
  
  static class b_
    implements v
  {
    x a;
    w b = null;
    
    b_(x paramx)
    {
      this.a = paramx;
      if (!w.e)
      {
        if (this.a.e()) {
          this.b = this.a.a();
        }
      }
      else {
        this.a.f();
      }
    }
    
    public boolean e()
    {
      return this.a.e();
    }
    
    public void f()
    {
      this.b = this.a.a();
      this.a.f();
    }
    
    public void g()
    {
      throw new UnsupportedOperationException();
    }
    
    public void h()
    {
      this.a.h();
      if (!w.e)
      {
        if (this.a.e()) {
          this.b = this.a.a();
        }
      }
      else {
        this.a.f();
      }
    }
    
    public void i()
    {
      this.a.i();
      this.a.g();
      if (!w.e)
      {
        if (this.a.e()) {
          this.b = this.a.a();
        }
      }
      else {
        this.a.f();
      }
    }
    
    public Object j()
    {
      return a();
    }
    
    public n a()
    {
      w localw = this.a.a();
      if ((w.e) || ((this.b == null) || (localw == null))) {
        throw new NullPointerException();
      }
      return new n(this.b, localw);
    }
    
    public int k()
    {
      if (!w.e) {
        if (this.a.k() < 2) {
          return 0;
        }
      }
      return this.a.k() - 1;
    }
  }
  
  static class a_
    implements x
  {
    a.c.y a;
    
    a_(a.c.y paramy)
    {
      this.a = paramy;
    }
    
    public boolean e()
    {
      return this.a.e();
    }
    
    public void f()
    {
      this.a.f();
    }
    
    public void g()
    {
      this.a.g();
    }
    
    public void h()
    {
      this.a.h();
    }
    
    public void i()
    {
      this.a.i();
    }
    
    public Object j()
    {
      return this.a.j();
    }
    
    public int k()
    {
      return this.a.k();
    }
    
    public w a()
    {
      return (w)this.a.j();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.d.y

 * JD-Core Version:    0.7.0.1

 */